Skip to main content

seconds

Type​

function

Summary​

Returns the number of seconds since the start of the eon.

Syntax​

the [long] seconds
seconds()

Description​

Use the seconds function to time events.

The seconds function returns the total number of seconds since midnight, January 1, 1970 GMT.

The long seconds form returns a value with a precision to a millionth of a second. However, this value is not normally accurate past the third decimal place because of processor delays.

Examples​

the seconds -- might return 961694002
the long seconds -- might return 961694002.834503

Value​

NameTypeDescription

return

The seconds function returns a positive integer. If the long seconds form is used, the seconds function returns a positive number with up to six digits after the decimal point.

function: milliseconds

glossary: event, eon, return, decimal point

command: wait

control structure: function

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?